x86/HVM: RTC code must be in line with WAET flags passed by hvmloader
authorJan Beulich <jbeulich@suse.com>
Tue, 21 May 2013 08:15:13 +0000 (10:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 May 2013 08:15:13 +0000 (10:15 +0200)
commit3fa7fb8b86b89167153fa457b27620436d648969
treedc4a0c3d75a1f4ca16065c34093b3b510ff2663d
parent9607327abbd3e77bde6cc7b5327f3efd781fc06e
x86/HVM: RTC code must be in line with WAET flags passed by hvmloader

With hvmloader telling the guest that it may skip REG_C reads during
the processing of RTC interrupts, the emulation code must not depend
upon these reads to occur. Introduce two modes of operation for the
emulation code, and short of a HVM parameter (too late to be
introduced for 4.3) hard code the mode determination to always assume
that Windows-conforming one for the time being.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Roger Pau Monné <roger.pau@citrix.com> (FreeBSD guest)
tools/firmware/hvmloader/acpi/static_tables.c
xen/arch/x86/hvm/rtc.c